Add menu and desktop files for gpsbabel-gui.
authorBernd Zeimetz <bernd@bzed.de>
Mon, 12 May 2014 23:57:35 +0000 (01:57 +0200)
committerBernd Zeimetz <bernd@bzed.de>
Mon, 12 May 2014 23:57:35 +0000 (01:57 +0200)
Closes: #592799
Thanks: Julien Valroff

debian/control
debian/gpsbabel-gui.desktop [new file with mode: 0644]
debian/gpsbabel-gui.install
debian/gpsbabel-gui.menu [new file with mode: 0644]
debian/rules

index 0a6a0cc9f68d66add52b4cf8d80a78e40603d0fe..04db97f4bd33037022f16672e2de12f53acdcbc4 100644 (file)
@@ -7,7 +7,8 @@ Build-Depends: debhelper (>= 7.0.0), quilt,
  libexpat1-dev, expat, help2man,
  libxml2-utils,
  libusb-dev, zlib1g-dev,
- libqtwebkit-dev | libqt4-dev (<= 4:4.7.0~beta1), libqt4-dev (>= 4:4.4.3)
+ libqtwebkit-dev | libqt4-dev (<= 4:4.7.0~beta1), libqt4-dev (>= 4:4.4.3),
+ imagemagick
 Build-Depends-Indep: fop [!mips], xsltproc, docbook-xml,
  docbook-xsl, libpaper-dev 
 Standards-Version: 3.8.4
diff --git a/debian/gpsbabel-gui.desktop b/debian/gpsbabel-gui.desktop
new file mode 100644 (file)
index 0000000..31fbb85
--- /dev/null
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=GPSBabel
+Comment=
+Exec=gpsbabelfe
+Terminal=false
+StartupNotify=no
+Icon=gpsbabel.xpm
+Categories=Education;Science;Geoscience
index 9573ca72ff91ca0611f584ea0f6a61f9bc5caf7b..5f5efb82a8b6ba057a31734b2ac6e036f6323c0c 100644 (file)
@@ -1 +1,3 @@
 gpsbabel/gui/objects/gpsbabelfe /usr/bin
+debian/gpsbabel.xpm /usr/share/pixmaps
+debian/gpsbabel-gui.desktop /usr/share/applications
diff --git a/debian/gpsbabel-gui.menu b/debian/gpsbabel-gui.menu
new file mode 100644 (file)
index 0000000..6cae1da
--- /dev/null
@@ -0,0 +1,5 @@
+?package(gpsbabel-gui): needs="X11"\
+   section="Applications/Science/Geoscience"\
+   title="GPSBabel"\
+   icon="/usr/share/pixmaps/gpsbabel.xpm"\
+   command="/usr/bin/gpsbabelfe"
index 219d8ddf42e7574f859266a2c913d95909cca21a..193ac4eeaae6fc513bd8a4ba7caef3f493ac4a7c 100755 (executable)
@@ -59,12 +59,15 @@ debian/gpsbabel.1: build-stamp
 gpsbabel/gui/Makefile: $(QUILT_STAMPFN)
        cd gpsbabel/gui && qmake-qt4
 
+debian/gpsbabel.xpm: gpsbabel/gui/images/appicon.png
+       convert -resize 32x32 $< $@
+
 BUILD_TARGETS_ARCH = build-stamp build-gui-stamp debian/gpsbabel.1
 BUILD_TARGETS_INDEP = build-doc-stamp
 # indep targets are only built by binary-indep.
 build: $(BUILD_TARGETS_ARCH)
 
-build-stamp: configure-stamp 
+build-stamp: configure-stamp debian/gpsbabel.xpm
        dh_testdir
 
        # Add here commands to compile the package.
@@ -99,6 +102,7 @@ clean-patched:
        dh_testroot 
        rm -f *-stamp gpsbabel/dep gpsbabel/doc/*.ps
        rm -rf gpsbabel/xmldoc/autogen
+       rm -f debian/gpsbabel.xpm
 
        # Add here commands to clean up after the build process.
        [ ! -f gpsbabel/Makefile ] || $(MAKE) -C gpsbabel clean
@@ -166,6 +170,7 @@ binary-arch: build-arch install-arch
        dh_installchangelogs -a
        dh_installdocs -a
        dh_installman -a
+       dh_installmenu -a
        dh_strip -a
        dh_compress -a
        dh_fixperms -a